package com.zkflzl.store.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 门店库存表
 * @TableName tb_shop_stock
 */
@TableName(value ="tb_shop_stock")
@Data
public class ShopStock implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 创建用户 id
     */
    @TableField(value = "userId")
    private Long userId;

    /**
     * 商品 id
     */
    @TableField(value = "storeId")
    private Long storeId;

    /**
     * 门店 id
     */
    @TableField(value = "shopId")
    private Long shopId;

    /**
     * 名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 库存数量
     */
    @TableField(value = "quantity")
    private Integer quantity;

    /**
     * 创建时间
     */
    @TableField(value = "createTime")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "updateTime")
    private Date updateTime;

    /**
     * 是否删除
     */
    @TableLogic
    @TableField(value = "isDelete")
    private Integer isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}